package com.demo.array2;

import java.util.jar.JarOutputStream;

/*
数组初始化之静态初始化
 */
public class Test01 {
    public static void main(String[] args) {
        int[] arr = new int[]{11,22,33,};
        System.out.println(arr);
        System.out.println(arr[0]);
        System.out.println(arr[1]);
        System.out.println(arr[2]);
        int[] arr2 = {44,55,66};
        System.out.println(arr2);
        System.out.println(arr2[0]);
        System.out.println(arr2[1]);
        System.out.println(arr2[2]);
        arr[2] = 87;
        System.out.println(arr[2]);
        arr2[2] =0;
        System.out.println(arr2[2]);
    }
}
